﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SetImage.aspx.cs" Inherits="ProjectQuaDep.Admin.AwardsImages.SetImage" %>

<%@ Register Src="../ControlAdmin/header-html.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="../ControlAdmin/Header.ascx" TagName="Header" TagPrefix="uc2" %>
<%@ Register Src="../ControlAdmin/Footer.ascx" TagName="Footer" TagPrefix="uc3" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<style type="text/css">
    .style2
    {
        height: 34px;
    }
</style>
<uc1:header ID="header1" runat="server" />
<body>
    <form id="form1" runat="server">
    <div class="wp100">
        <!--end header-->
        <uc2:Header ID="Header2" runat="server" />
        <div class="sanpham_vc">
            <div class="top_content">
                <h2 class="wp_auto">
                    Ai giống ai - Ảnh đoạt giải<span>
                        <%@ register src="../ControlAdmin/SubMenuVongThi.ascx" tagname="SubMenuVongThi" tagprefix="uc4" %>
                        <uc4:SubMenuVongThi ID="SubMenuVongThi1" runat="server" />
                    </span>
                </h2>
            </div>
            <!--end top_content-->
            <div class="wp_auto tin_tuc">
                <div class="clear">
                </div>
                <div class="contentadmin">
                    <table cellpadding="5px" cellspacing="10px">
                        <tr>
                            <td class="style2">
                                <asp:ImageButton ID="cmdSearch" runat="server" ImageUrl="/Images/icon/search.png"
                                    OnClick="cmdSearch_Click" />
                            </td>
                            <td class="style2">
                                <asp:TextBox ID="txtSearch" runat="server" Width="377px"></asp:TextBox>
                            </td>
                            <td class="style2">
                                &nbsp;
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlRound" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlRound_SelectedIndexChanged">
                                    <asp:ListItem Value="1">Vòng 1</asp:ListItem>
                                    <asp:ListItem Value="2">Vòng 2</asp:ListItem>
                                    <asp:ListItem Value="3">Vòng 3</asp:ListItem>
                                    <asp:ListItem Value="4">Vòng 4</asp:ListItem>
                                    <asp:ListItem Value="5">Vòng 5</asp:ListItem>
                                    <asp:ListItem Value="6">Vòng 6</asp:ListItem>
                                    <asp:ListItem Value="7">Vòng 7</asp:ListItem>
                                    <asp:ListItem Value="8">Vòng 8</asp:ListItem>
                                    <asp:ListItem Value="9">Vòng 9</asp:ListItem>
                                    <asp:ListItem Value="10">Vòng 10</asp:ListItem>
                                    <asp:ListItem Value="11">Vòng 11</asp:ListItem>
                                    <asp:ListItem Value="12">Vòng 12</asp:ListItem>
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td class="style2">
                                <asp:DropDownList ID="ddlSetGiai" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSetGiai_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblPage" runat="server" ForeColor="#CC0000"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <hr />
                    <asp:GridView ID="gvShow" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        OnRowCommand="gvShow_RowCommand" CellPadding="4" Width="100%" BackColor="White"
                        BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" OnPageIndexChanging="gvShow_PageIndexChanging">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div class="noidungadmin">
                                        <img src="<%# Eval("img") %>" width="300px" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div class="noidungadmin">
                                       <%-- <b>Tiêu đề Ảnh:</b>
                                        <%# Eval("title") %><br />--%>
                  <%--                      <b>Tiêu điểm:</b>
                                        <%# Eval("tieudiem") %>--%>
                                        <b>Ảnh thi vòng <%# Eval("RoundAwards")%></b>
                                        <br />
                                        <b>Người gửi:</b>
                                        <%# Eval("name")%>(ID:<%# Eval("ImageId")%>) - <b>Trạng thái:</b> [<%# Eval("setdoatgiai")%>]
                                        <br />
                                        <b>Thông tin:</b>
                                        <%# Eval("email") %>
                                        -
                                        <%# Eval("phone") %>
                                        -
                                        <%# Eval("Address")%>
                                        <br />
                                        <b>Nội dung tóm tắt:</b>
                                        <%# Eval("ShortContent")%>
                                        <br />
                                        <b>LikeFB:</b><%# Eval("LikeFb")%> - <b>Comment:</b><%# Eval("CountComment")%>  <br />
                                        <b>Shared:</b><%# Eval("CountShare")%>  - <b>Vote:</b><%# Eval("likeWeb")%>
                                        <br />
                                        <b>Ngày đăng:</b>
                                        <%#  DateTime.Parse(Eval("CreateDate").ToString()).ToString("dd/MM/yyyy HH:mm")%>
                                        <br />
                                        <%--<b>Ngày được duyệt:</b>
                                        <%#  DateTime.Parse(Eval("PublicDate").ToString()).ToString("dd/MM/yyyy HH:mm")%>--%>
                                        <b>Sinh nhật:</b>
                                        <%# DateTime.ParseExact(Eval("birthday").ToString(),"yyyyMMdd",null).ToString("dd/MM/yyyy") %>
                                        <br />
                                        <a href="<%# Eval("linkfb").ToString() %>" target="_blank"><b>Facebook</b> </a>
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div class="noidungadmin">
                                        <asp:ImageButton ID="btnCheck" CommandName="cmdCheck" CommandArgument='<%# Eval("id") %>'
                                            runat="server" ImageUrl="/Images/icon/statusadmin.png" />
                                        &nbsp;&nbsp;
                                        <asp:ImageButton ID="btnDelete" CommandName="cmdDelete" CommandArgument='<%# Eval("id") %>'
                                            runat="server" ImageUrl="/Images/icon/delete.png" />
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    </asp:GridView>
                     <asp:Button ID="CmdExcel" runat="server" onclick="CmdExcel_Click" 
            Text="Xuất Excel" />
&nbsp;Lưu file lại tải xong đổi tên thêm đuôi .xls vào là được
                </div>
            </div>
            <!--end auto-->
        </div>
        <!--end sanpham_vc-->
        <!--end footer_bt-->
        <uc3:Footer ID="Footer1" runat="server" />
    </div>
    <!--end wp100-->
    </form>
</body>
</html>
